define(["jquery", "easy-admin"], function ($, ea) {

    var init = {
        table_elem: '#currentTable',
        table_render_id: 'currentTableRenderId',
        index_url: 'knscy.order_logs/index',
        add_url: 'knscy.order_logs/add',
        edit_url: 'knscy.order_logs/edit',
        delete_url: 'knscy.order_logs/delete',
        export_url: 'knscy.order_logs/export',
        modify_url: 'knscy.order_logs/modify',
    };

    var Controller = {

        index: function () {
            ea.table.render({
                init: init,
                toolbar:['refresh' ,'delete','export'],
                cols: [[
                    {type: 'checkbox'},
                    {field: 'id', title: 'id' ,align: 'left'},
                    {field: 'order_no', title: '订单NO',minWidth:180, align:'left'},
                    {field: 'content', title: '日志内容',minWidth:400, align:'left'},
                    {field: 'create_time',minWidth:200, title: '创建时间',search:"range", align:'left'},
                    {field: 'tag', title: '日志标识',minWidth:260, align:'left'},
                   // {fixed:"right",width: 150, title: '操作', templet: ea.table.tool},
                ]],
            });

            ea.listen();
        },
        add: function () {
            ea.listen();
        },
        edit: function () {
            ea.listen();
        },
    };
    return Controller;
});